package com.example.travel.Service;

import com.example.travel.domain.TestmodelTopic;
import com.example.travel.mapper.TestmodelTopicMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 功能：
 * 作者：lln
 * 日期：2025/3/25 16:31
 */
@Service
public class TopicServer {
    @Autowired
    private TestmodelTopicMapper topicMapper;

    //发布帖子
    public int addTopic(TestmodelTopic topic){
        return topicMapper.fabu(topic);
    }

}
